/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.stat;

import android.text.TextUtils;
import org.json.JSONObject;

public class o {
    private static String h = "TaskBean";
    public String a = "";
    public String b = "";
    public String c = "";
    public int d = 0;
    public long e = 0L;
    public long f = 0L;
    public long g = -1L;

    public JSONObject a() {
        JSONObject localJSONObject = new JSONObject();
        try {
            localJSONObject.put("name", this.a);
            localJSONObject.put("begin", this.e);
            localJSONObject.put("status", this.d);
            if (!(TextUtils.isEmpty(this.b)))
                localJSONObject.put("type", this.b);
            if (!(TextUtils.isEmpty(this.c)))
                localJSONObject.put("reason", this.c);
            if (0L != this.f) {
                localJSONObject.put("end", this.f);
                localJSONObject.put("duration", this.g);
            }
        } catch (Exception localException) {
            x.a(h, localException);
        } catch (Error localError) {
            x.a(h, localError);
        }
        return localJSONObject;
    }
}